package com.zhxh.nzpos.model;

import java.io.Serializable;

/**
 * 库存
 * @author Administrator
 *
 */
public class Stock implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1338023285063624549L;

	private String id; // 编号
	
	private String goodId; // 商品ID
	private String goodsName; // 商品name

	private int count; // 数量
	
	private String stockDate; //入库日期
	
	private String life; // 入库日期
	private String unit; // 单位
	private long created; // 创建时间
	private long modified; // 修改时间
	
	private float price;
	
	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getGoodId() {
		return goodId;
	}

	public void setGoodId(String goodId) {
		this.goodId = goodId;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public String getStockDate() {
		return stockDate;
	}

	public void setStockDate(String stockDate) {
		this.stockDate = stockDate;
	}

	public String getLife() {
		return life;
	}

	public void setLife(String life) {
		this.life = life;
	}


	
	public long getCreated() {
		return created;
	}

	public void setCreated(long created) {
		this.created = created;
	}

	public long getModified() {
		return modified;
	}

	public void setModified(long modified) {
		this.modified = modified;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}
	
	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public float getTotal() {
		return price*count;
	}
	
	public String toString() {
		return "Stock [id=" + id + ",goodId=" + goodId + ",stockDate="
				+ stockDate + ",life=" + life + ",created=" + created +",modified=" + modified + "]";
	}
}
